package com.bangbang.feign;

import com.bangbang.feign.fallback.PayServiceFeignFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;


@FeignClient(value = "bangbang-pay-service",fallback = PayServiceFeignFallBack.class)
public interface PayServiceFeign {
    @PostMapping("alipay/alipayTradePagePay")
    String alipayTradePagePay(@RequestParam("orderNumber") Long orderNumber, @RequestParam("price") BigDecimal price, @RequestParam("subject") String subject, @RequestParam("body") String body);
}
